package com.yanqu.road.entity.enums.activity.pawnshop;

/**
 * 物件操作状态
 */
public enum ePawnshopOpStatus {
	SellOut("售出", -1),
	Default("默认", 0),
	Repair("修复", 1),
	Fake("伪造", 2),
	Hock("典当", 3),
	;

	private String name;
	private int intValue;

	ePawnshopOpStatus(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static ePawnshopOpStatus forValue(int value) {
		for (ePawnshopOpStatus type : ePawnshopOpStatus.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
